<?php

/**
* @package		auto_occasion
* @subpackage 	commun
* @version      1
* @author       CMS
*/


/**
* Zone affichant le  header du front office
*
* @package auto_occasion
* @subpackage commun
*/
class FoHomePubZone extends jZone {
 
	protected $_tplname='accueil~FoHomePub.zone';

	/**
	* Chargement des données pour affichage
	*/
	protected function _prepareTpl(){
        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        $pub1 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_1_ID);
        $pub2 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_2_ID);
        $pub3 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_3_ID);
        $pub4 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_4_ID);
        $pub5 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_5_ID);
        $pub6 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_6_ID);

        $timeout = parametre::get(PARAM_TIMEOUT_PUB);
        $this->_tpl->assign('timeout', $timeout);
        $this->_tpl->assign('pub1', $pub1);
        $this->_tpl->assign('pub2', $pub2);
        $this->_tpl->assign('pub3', $pub3);
        $this->_tpl->assign('pub4', $pub4);
        $this->_tpl->assign('pub5', $pub5);
        $this->_tpl->assign('pub6', $pub6);
		
	}
}